package com.neuedu.his.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Ret {

    private Integer code;  //20000
    private String message;
    private Object data  ;



    /**成功*/
    public static Ret success(Object data){
        return  new Ret(20000,"",data);
    }

    /**失败*/
    public static Ret fail(String message){
        return  new Ret(50000,message,null);
    }

}
